 <?php echo $this->Form->create('Stock', array('type' => 'file')); ?>
<section class="panel">
<header class="panel-heading">SPECIFICATION</header>
                          <div class="panel-body">
                             
                        

							 <div class="form-group">
                                     <div class="col-lg-12">
                                          <div class="row">
                                              <div class="col-lg-2">
                                                  <?php echo $this->Form->input('id'); ?>
                                                  <?php  echo $this->Form->input('chassis_no',array('class'=>'form-control')); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                 <?php  echo $this->Form->input('year',array('class'=>'form-control')); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('color_id',array('empty'=>'Select','class'=>'form-control','type'=>'select','options'=>$colorList)); ?>
                                              </div>
											   <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('categoty_id',array('empty'=>'Select','class'=>'form-control','label'=>'Category','type'=>'select','options'=>$CategoryList)); ?>
                                              </div>
											   <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('make_id',array('empty'=>'Select','class'=>'form-control','type'=>'select','options'=>$MakeList)); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                 <?php  echo $this->Form->input('model_id',array('empty'=>'Select','class'=>'form-control','type'=>'select','options'=>$ModelDescList)); ?>
                                              </div>
                                          </div>

                                      </div>
									  
									  
									  
									  
									  <div class="col-lg-12">
                                          <div class="row">
                                             
                                              <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('transmission_id',array('empty'=>'Select','class'=>'form-control','type'=>'select','options'=>$TransmissionList)); ?>
                                              </div>
											   <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('weight',array('class'=>'form-control')); ?>
                                              </div>
											   <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('drive',array('empty'=>'Select','class'=>'form-control','type'=>'select','options'=>array('LEFT'=>'LEFT','RIGHT'=>'RIGHT'))); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                 <?php  echo $this->Form->input('user_new',array('empty'=>'Select','class'=>'form-control','label'=>'USED / NEW','type'=>'select','options'=>array('USED'=>'USED','NEW'=>'NEW'))); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('doors',array('class'=>'form-control')); ?>
                                              </div>
											   <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('country',array('empty'=>'Select','class'=>'form-control','type'=>'select','options'=>$CountryList)); ?>
                                              </div>
                                          </div>

                                      </div>
									  
									  
									
									  
									  <div class="col-lg-12">
                                          <div class="row">
                                              <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('engine_type',array('empty'=>'Select','class'=>'form-control','type'=>'select','options'=>array('3 CYLINDER'=>'3 CYLINDER','4 CYLINDER'=>'4 CYLINDER','5 CYLINDER'=>'5 CYLINDER','6 CYLINDER'=>'6 CYLINDER','7 CYLINDER'=>'7 CYLINDER','8 CYLINDER'=>'8 CYLINDER','9 CYLINDER'=>'9 CYLINDER','10 CYLINDER'=>'10 CYLINDER','11 CYLINDER'=>'11 CYLINDER','12 CYLINDER'=>'12 CYLINDER','14 CYLINDER'=>'14 CYLINDER'))); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                 <?php  echo $this->Form->input('fuel',array('empty'=>'Select','class'=>'form-control','type'=>'select','options'=>array('GASOLINE'=>'GASOLINE','DIESEL'=>'DIESEL','L'=>'L','F'=>'F','C'=>'C','K'=>'K','N'=>'N','Other'=>'Other'))); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('engine_no',array('class'=>'form-control')); ?>
                                              </div>
											   <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('his_code',array('class'=>'form-control','label'=>'HS Code')); ?>
                                              </div>
											   <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('location',array('class'=>'form-control')); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                 <?php  echo $this->Form->input('showroom',array('empty'=>'Select','class'=>'form-control','type'=>'select','options'=> $ShowroomList)); ?>
                                              </div>
                                          </div>

                                      </div>
									  
									  
									  <div class="col-lg-12">
                                          <div class="row">
                                             
                                              <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('options',array('class'=>'form-control')); ?>
                                              </div>
											   <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('other_ref',array('class'=>'form-control')); ?>
                                              </div>
											   <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('mileage',array('class'=>'form-control')); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                 <?php  echo $this->Form->input('int_color',array('empty'=>'Select','class'=>'form-control','type'=>'select','options'=> $colorList)); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('auc_grade',array('class'=>'form-control','label'=>'Auc. Grade')); ?>
                                              </div>
											   <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('global_loc',array('empty'=>'Select','class'=>'form-control','label'=>'Global Loc.','type'=>'select','options'=> $CountryList)); ?>
                                              </div>
                                          </div>

                                      </div>
									  
									  
														  
									  
									   <div class="col-lg-12">
                                          <div class="row">
                                              <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('showonweb',array('empty'=>'Select','class'=>'form-control','label'=>'Show On Web','type'=>'select','options'=> array('YES'=>'YES','NO'=>'NO'))); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                 <?php  echo $this->Form->input('seats',array('class'=>'form-control')); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('selling_price',array('class'=>'form-control')); ?>
                                              </div>
											   <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('auction_ref',array('class'=>'form-control')); ?>
                                              </div>
											   <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('vh_cc',array('class'=>'form-control','label'=>'VH CC')); ?>
                                              </div>
                                          </div>

                                      </div>
									 							  
									  
                                  </div>			

								  
																  
								  
                             
                          </div>
                      </section>







                <section class="panel">
                    <header class="panel-heading">PURCHASE</header>
                    <div class="panel-body">

                        <div class="form-group">
                            <div class="col-lg-12">
                                <div class="row">
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('purchase_price1', array('class' => 'form-control', 'label' => 'Purchase Price')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('freight1', array('class' => 'form-control', 'label' => 'Freight')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('buying', array('class' => 'form-control', 'label' => 'Buying (AED)')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('ducamz_value', array('class' => 'form-control')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('vendor_name', array('class' => 'form-control')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('purchase_ref_no', array('class' => 'form-control')); ?>
                                    </div>
                                </div>

                            </div>





                            <div class="col-lg-12">
                                <div class="row">
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('purchase_by', array('class' => 'form-control')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('pur_date', array('class' => 'form-control', 'type' => 'text', 'id' => 'dp1')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('ship_date', array('class' => 'form-control', 'type' => 'text', 'id' => 'dp2')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('ship_name', array('class' => 'form-control')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('bl_no', array('class' => 'form-control', 'label' => 'BL_NO')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('cont_no', array('class' => 'form-control')); ?>
                                    </div>
                                </div>

                            </div>


                            <div class="col-lg-12">
                                <div class="row">
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('bol_1', array('class' => 'form-control', 'label' => 'BOE_1')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('stock_type', array('class' => 'form-control')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('arrival_date', array('class' => 'form-control', 'type' => 'text', 'id' => 'dp3')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('control_no', array('class' => 'form-control')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('total_exp', array('class' => 'form-control')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('buyer_company', array('class' => 'form-control')); ?>
                                    </div>
                                </div>

                            </div>


                            <div class="col-lg-12">
                                <div class="row">
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('buyer_contact', array('class' => 'form-control')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('third_party', array('class' => 'form-control')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('transport_date', array('class' => 'form-control', 'type' => 'text', 'id' => 'dp6')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('transport_company', array('class' => 'form-control')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('repair_company', array('class' => 'form-control')); ?>
                                    </div>
                                    <div class="col-lg-2">
                                        <?php echo $this->Form->input('repair_date', array('class' => 'form-control', 'type' => 'text', 'id' => 'dp7')); ?>
                                    </div>
                                </div>

                            </div>


                        </div>			


                    </div>
                </section>




					  
					  
					  
		
					  

					  
					  
					  <section class="panel">
					  <header class="panel-heading">SALE</header>
                          <div class="panel-body">
                            
							 <div class="form-group">
                                     <div class="col-lg-12">
                                          <div class="row">
                                              <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('customer_name',array('class'=>'form-control')); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                 <?php  echo $this->Form->input('customer_no',array('class'=>'form-control')); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('sold_date',array('class'=>'form-control','type'=>'text','label'=>'Sold_Date','id'=>'dp8')); ?>
                                              </div>
											   <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('sale_price',array('class'=>'form-control')); ?>
                                              </div>
											   <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('bal_due',array('class'=>'form-control')); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                 <?php  echo $this->Form->input('paid',array('class'=>'form-control')); ?>
                                              </div>
                                          </div>

                                      </div>
									  
									  
									  
									   <div class="col-lg-12">
                                          <div class="row">
                                              <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('export_to',array('class'=>'form-control')); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                 <?php  echo $this->Form->input('portofdisc',array('class'=>'form-control','label'=>'Port-Of-Disc')); ?>
                                              </div>
                                              <div class="col-lg-2">
                                                  <?php  echo $this->Form->input('exit_point',array('class'=>'form-control')); ?>
                                              </div>
											 
                                          </div>

                                      </div>
								
                                  </div>			

                            
                          </div>
                      </section>
					  
					  
					  
					  
					  
					  
					  
					  
                        <section class="panel">
                            <header class="panel-heading">DEPOSIT & PAPERS</header>
                            <div class="panel-body">

                                <div class="form-group">
                                    <div class="col-lg-12">
                                        <div class="row">
                                            <div class="col-lg-2">
                                                <?php echo $this->Form->input('deposit', array('class' => 'form-control')); ?>
                                            </div>
                                            <div class="col-lg-2">
                                                <?php echo $this->Form->input('on_behalf', array('class' => 'form-control', 'type' => 'text')); ?>
                                            </div>
                                            <div class="col-lg-2">
                                                <?php echo $this->Form->input('emp_boe_date', array('class' => 'form-control', 'type' => 'text', 'label' => 'Exp. BOE Date', 'id' => 'dp9')); ?>
                                            </div>
                                            <div class="col-lg-6" style="margin-top: 26px;">
                                                <label for="inputpaper_made" class="col-lg-3 control-label">Paper Made</label>
                                                <?php echo $this->Form->input('paper_made', array('class' => 'form-control', 'label' => false, 'type' => 'select', 'multiple' => 'checkbox', 'class' => 'checkbox-inline', 'options' => array('EXPORT' => 'EXPORT', 'TEMP' => 'TEMP', 'TRANSFER' => 'TRANSFER', 'IMPORT' => 'IMPORT'))); ?>
                                            </div>


                                        </div>

                                    </div>

                                    <div class="col-lg-12">
                                        <div class="row">
                                            <div class="col-lg-2">
                                                <?php echo $this->Form->input('ship_date1', array('class' => 'form-control', 'type' => 'text', 'label' => 'Ship Date', 'id' => 'dp10')); ?>
                                            </div>
                                            <div class="col-lg-2">
                                                <?php echo $this->Form->input('submit_date', array('class' => 'form-control', 'type' => 'text', 'id' => 'dp11')); ?>
                                            </div>
                                            <div class="col-lg-2">
                                                <?php echo $this->Form->input('boe2', array('class' => 'form-control', 'label' => 'BOE_2')); ?>
                                            </div>
                                            <div class="col-lg-2">
                                                <?php echo $this->Form->input('temp_boe', array('class' => 'form-control', 'label' => 'Temp BOE')); ?>
                                            </div>
                                            <div class="col-lg-2">
                                                <?php echo $this->Form->input('da_date', array('class' => 'form-control', 'type' => 'text', 'label' => 'DA Date', 'id' => 'dp12')); ?>
                                            </div>
                                            <div class="col-lg-2">
                                                <?php echo $this->Form->input('sg_date', array('class' => 'form-control', 'type' => 'text', 'label' => 'SG Date', 'id' => 'dp13')); ?>
                                            </div>

                                        </div>

                                    </div>
                                    <div class="col-lg-12">
                                        <div class="row">
                                            <div class="col-lg-2">
                                                <?php echo $this->Form->input('vec_date', array('class' => 'form-control', 'type' => 'text', 'label' => 'VEC Date', 'id' => 'dp14')); ?>
                                            </div>
                                            <div class="col-lg-2">
                                                <?php echo $this->Form->input('gp_date', array('class' => 'form-control', 'type' => 'text', 'label' => 'GP Date', 'id' => 'dp15')); ?>
                                            </div>
                                            <div class="col-lg-2">
                                                <?php echo $this->Form->input('exit_date', array('class' => 'form-control', 'type' => 'text', 'id' => 'dp16')); ?>
                                            </div>
                                            <div class="col-lg-2">
                                                <?php echo $this->Form->input('exit_reason', array('class' => 'form-control')); ?>
                                            </div>

                                        </div>

                                    </div>


                                </div>			


                            </div>
                        </section>
					  
                    <section class="panel">
                        <header class="panel-heading">DELIVERY</header>
                        <div class="panel-body">

                            <div class="form-group">
                                <div class="col-lg-12">
                                    <div class="row">
                                        <div class="col-lg-2">
                                            <?php echo $this->Form->input('paper_ready', array('class' => 'form-control')); ?>
                                        </div>
                                        <div class="col-lg-2">
                                            <?php echo $this->Form->input('paper_taken', array('class' => 'form-control')); ?>
                                        </div>
                                        <div class="col-lg-2">
                                            <?php echo $this->Form->input('taken_by_contact', array('class' => 'form-control', 'type' => 'text')); ?>
                                        </div>
                                        <div class="col-lg-2">
                                            <?php echo $this->Form->input('taken_by_name', array('class' => 'form-control', 'type' => 'text')); ?>
                                        </div>
                                        <div class="col-lg-2">
                                            <?php echo $this->Form->input('do_issued', array('class' => 'form-control', 'type' => 'text')); ?>
                                        </div>
                                        <div class="col-lg-2">
                                            <?php echo $this->Form->input('car_taken', array('class' => 'form-control', 'type' => 'text')); ?>
                                        </div>
                                    </div>

                                </div>
                                <div class="col-lg-12">
                                    <div class="row">
                                        <div class="col-lg-2">
                                            <?php echo $this->Form->input('car_taken_contact', array('class' => 'form-control', 'type' => 'text')); ?>
                                        </div>
                                        <div class="col-lg-4">
                                            <?php echo $this->Form->input('comments', array('class' => 'form-control')); ?>
                                        </div>








                                    </div>
                                </div>
                            </div>			
                        </div>
                    </section>
						

                    <section class="panel">
                        <header class="panel-heading">VEHICLE OPTIONS</header>
                        <div class="panel-body">
                            <?php echo $this->Form->input('vo_abbrev', array('class' => 'form-control', 'type' => 'select', 'multiple' => 'checkbox', 'label' => false, 'class' => 'checkbox-inline', 'options' => $VehicleOptionList)); ?>
                        </div>
                    </section>

						
						
						
                    <section class="panel">
                        <header class="panel-heading">IMAGES</header>
                        <div class="panel-body">

                            <?php echo $this->Form->input('files.', array('label' => false, 'type' => 'file', 'multiple')); ?>

                        </div>
                    </section>

						
		      <section class="panel">
                       
                          <div class="panel-body">
                          <?php echo $this->Form->input('Submit',array('type'=>'submit', 'class'=>'btn btn-info','label'=>false)); ?>
                          
                          </div>
                      </section>
                        <?php echo $this->Form->end(); ?> 


                          
                         <section class="panel">
                                  <div class="panel-body">
                                      <ul class="summary-list" >
                                          <?php foreach ($StockImageArray as $value) {
                                            echo '<li style="width: 12.5%;">';  
                                            
                                            echo $this->Html->image('/files/stock/xsmall/'.$value['StockImage']['image_name']);
                                            echo $this->Form->postLink(__('Delete'), array('action' => 'deleteimage',$value['StockImage']['id'],$this->params['pass'][0]), array('class' => 'btn btn-danger btn-xs btn-block'), __('Are you sure you want to delete the image?'));
                                            echo '</li>'; 
                                              
                                          } ?>
                                          
                                          
                                             
                                    
                                      </ul>
                                  </div>
                              </section>






